home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gPictNum, gTrackPict
- set gPictNum to gPictNum + 1
- set gTrackPict to gTrackPict + 1
- if gPictNum > 40 then
- set gPictNum to 31
- end if
- if gTrackPict > 10 then
- set gTrackPict to 1
- end if
- set tButtonState to word 2 of the name of member the memberNum of sprite the clickOn of castLib the castLibNum of sprite the clickOn
- case tButtonState of
- "upState":
- hMakeSound("CLICK.AIF", 1)
- if hValidClick01() = 1 then
- hButtonScripts(tButtonState)
- end if
- "rolloverState":
- hMakeSound("CLICK.AIF", 1)
- if hValidClick02() = 1 then
- hButtonScripts(tButtonState)
- end if
- end case
- set the member of sprite 42 to gPictNum
- updateStage()
- end
-
- on mouseUp
- hMakeSound("CLICK2.AIF", 1)
- end
-
- on hButtonScripts pButtonState
- if pButtonState = "rolloverState" then
- hUndoButtonRollover()
- end if
- end
-